/*
 * @Author: your name
 * @Date: 2020-08-25 12:09:00
 * @LastEditTime: 2020-08-25 17:25:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ryfront\src\api\role.js
 */
import axios from './http'

export const roleList = (object) => {
    return axios.get("/d_role/d-role/getRoleList",{params:object});
}

export const roleAdd = (object) => {
    return axios.post("/d_role/d-role/addRole",object);
}

export const roleUpd = (object) => {
    return axios.post("/d_role/d-role/updRole",object);
}

export const roleDel = (id) => {
    return axios.post("/d_role/d-role/delRole/"+id);
}